GetSecCount

 

Calculates the total number of seconds from the start of the year to the specified year/month/day/hour/minute/second. This includes adjustments for leap years.

 

long GetSecCount(int year, int month, int day, int hour, int minute, int second);

 

Parameters

year - The year for which to obtain the total number of seconds.

month - The month for which to obtain the total number of seconds.

day - The day for which to obtain the total number of seconds.

hour - The hour for which to obtain the total number of seconds.

minute - The minute for which to obtain the total number of seconds.

second - The second for which to obtain the total number of seconds.

 

Return Value

Returns the total number of seconds calculated.

 

Example

secs = @GetSecCount(1999, 5, 25, 10, 0, 0);

Description: Calculates the total number of seconds from January 1, 1999, 10:00:00.

 

Version Information

Supported Version: 10.2.9 or Higher

 

Related Helps

@GetDayCount()

@GetHourCount()

@GetMinCount()

@GetSecCount()